from hruntools.hrunJsonYamlToExcel import Hrun_FileTrans


def loadfile2excel(infile, outfile):
    hj = Hrun_FileTrans(infile, outfile)
    hj.load_file()

    pexcel =  hj.toExcel()

    print(pexcel)


def main():
    # infile = "e:/git_home/httprunner/tests/data/demo_testcase_hardcode.yml"
    # "e:/git_home/httprunner/docs/data/demo-quickstart.json"

    infile = "d:/vvv.json"
    infile = "d:/ccc.json"
    infile = "d:/hhhh.har"
    infile = "F:/zsah_work/shoubahrun/testcases/yc.yml"
    outf = "d:/ycpppp.xls"
    loadfile2excel(infile,outf)



if __name__ == '__main__':
    main()
